#include "crawler_lib.h"
#include <stdio.h>
#include <stdlib.h>

struct URLList * urlList;

int main(int argc, char * argv[])
{
	urlList = (struct URLList *)malloc(sizeof(struct URLList));
	int id = 0;
	char * urlFile ="urls.txt";
	char * file = (char*)malloc(20);
	/*urlList -> url = "ceva";
	urlList -> next = NULL;
	insertNode("Test1",urlList);
	insertNode("Test2",urlList);
	*/
	readFile("urls.txt", urlList);
 	sprintf(file,"%d%s",id,urlFile);
	printf("[[%s]]\n",file);
	while(urlList)
	{
		printf("[main]%s \n",urlList->url);
		urlList = urlList->next;
	}
	return 0;
}

